<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$return['item']=pdo_get('jy_lvpai_member',array('mid'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid']));
	$return['showtype']='stores';
	$return['params']['quyu']=intval($_RQ['quyu']);
	if($_RQ['province']){
		$params['province']=$_RQ['province'];
		$return['params']['province']=$_RQ['province'];
	}
	$quyu_types=$this->quyu_types;
	$return['quyu_typesinfo']=$this->quyu_typesinfo;
	set_html('title','系统展示后台');
	exi($return);
}
if($_RQ['op']=='getlist'){
	$pindex = max(1, intval($_RQ['page']));
	$psize = 10;
	$params=array('uniacid'=>$_SESSION['uniacid'],'status'=>1);
	$params['quyu']=intval($_RQ['quyu']);
	$return['params']['quyu']=intval($_RQ['quyu']);
	if($_RQ['province']){
		$params['province']=$_RQ['province'];
		$return['params']['province']=$_RQ['province'];
	}
    $orderby='paixu desc,id desc';
	$total='';
	$return['list']=pdo_getslice('jy_lvpai_store',$params,array($pindex,$psize),$total,$fields,'',$orderby);
	exi($return);
}